﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSP.DataAccess;
using CSP.Dao.CommonDao;
using CSP.Dao.IObjectDaos.CSP;
using CSP.Model.CSP;

namespace CSP.Dao.ObjectDaos.CSP
{
    public class OrderRemindDao : CSPCommonDao, IOrderRemindDao
    {
        public OrderRemindDao(CSPContext context, bool isTransaction = false)
            : base(context, isTransaction)
        { }

        public OrderRemind GetDataByOrderNumber(string orderNumber)
        {
            return _context.OrderReminds.FirstOrDefault(o => o.OrderNumber == orderNumber);
        }

        public ICollection<OrderRemind> FindAll()
        {
            throw new NotImplementedException();
        }

        public OrderRemind GetDataById(int id)
        {
            throw new NotImplementedException();
        }

        public ICollection<OrderRemind> GeDatatByIds(int[] Ids)
        {
            throw new NotImplementedException();
        }

        public void Add(OrderRemind obj)
        {
            throw new NotImplementedException();
        }

        public void Update(OrderRemind obj)
        {
            _context.SaveChanges();
        }

        public OrderRemind DeleteById(int id)
        {
            throw new NotImplementedException();
        }
    }
}
